package com.lanou.utp.service.impl;

import com.lanou.utp.entity.Major;
import com.lanou.utp.mapper.MajorMapper;
import com.lanou.utp.service.MajorService;
import com.lanou.utp.entity.ResponseData;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("majorService")
public class MajorServiceImpl implements MajorService {

    @Resource
    private MajorMapper majorMapper;

    @Override
    public ResponseData selectMajors() {
        List<Major> majors = majorMapper.selectMajors();
        return new ResponseData("ok",majors);
    }
}
